<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>业务管理后台</title>
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <link rel="stylesheet" href="__admin__/css/layui.css">
    <link rel="stylesheet" href="__admin__/css/admin.css">
    <script src="__admin__/js/jquery.js"></script>
    <script src="__admin__/layer/layer.js"></script>
    <style>
        .login-form input {
            color: #000;
        }
    </style>
    <style>
        html,body { height: 100%; }
        .container {min-height: 700px;height: 100%; margin: 0 auto -180px;background: url(../../../../../../../../Users/chenyuanhui/Desktop/信用卡/xyk.payqianyan.com/images/adminloginbg.jpg) no-repeat}
        .login {background: #fff;margin: 0 }
        .form-box {width: 500px; min-height: 220px; overflow: hidden; margin: 50px auto; background:#E9D7A7 }
        .login-title { color: #fff; text-align: center; font-size: 20px; font-weight: bold; }
        .login-form { max-width: 450px; margin: 10px auto; color: #fff; }
        .login-form .layui-form-label { width: 80px; font-weight: bold; }
        .login-form input { background-color: rgba(255, 255, 255, 0.3); }
        .login-form button { width: 100%; background-color: #2452BF; }
        .header { background: url(../../../../../../../../Users/chenyuanhui/Desktop/信用卡/xyk.payqianyan.com/images/top.jpg) repeat-x; height: 200px; }
        .login-title { margin-top: 20px }
        .login-title, .layui-form-label { color: #2452BF }
        .login input.layui-input { border: 1px solid #2452BF; width: 295px; }
        .layui-input:hover{border-color: #ca0000 !important; }
        .layui-input:focus {border-color: #639D3C !important; }
        #footer { text-align: center; width: 100%; height: 180px;background:#195DA5;color: #f7f7f7 }
        #footer a{color: #fff}
        .partner-box { background: #f7f7f7; overflow: hidden; width: 100%; height: 120px; }
        .partner-box .inner { width: 1280px; margin: 0 auto;font-size:30px;line-height:60px;color:crimson}
        .box-title { font-size: 22px; text-align: center }
        .partner { float: left; margin: 10px }
        div.icp { margin-top: 20px } </style>
</head>
<body class="login">
<div class="container">
    <div class="header"></div>
    <div class="form-box">
        <div class="login-title">深圳金永投资发展有限公司</div>
        <!--<form class="layui-form login-form" action="#" method="post">-->
            <div class="layui-form-item">
                <label class="layui-form-label">帐号</label>
                <div class="layui-input-inline">
                    <input type="text" name="mobile" id="mobile" required lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                    <input type="password" name="password" id="userpass" required lay-verify="required|userpass" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline" style="width:295px;margin-left:100px">
                    <button class="layui-btn" lay-submit lay-filter="login" id="btnsmt" onclick="chk()">登 录</button></div>
            </div>
        <!--</form>-->
    </div>
</div>
<div id="footer">
    <div id="copyrights-box">
        <span class="copyright"></span>

    </div>
</div>
<script>
    var chk= function () {

        var mobile = $('#mobile').val();
        var password = $('#userpass').val();
        if(mobile == ''){
            layer.alert('账号不能为空',{icon:0});
            return;
        }
        if(password==''){
            layer.alert('密码不能为空',{icon:0});
            return;
        }
        $.post("{$url}/admin/users/Ajax",{m:mobile,p:password},function (msg) {
            if(msg.error==0){
                alert(msg.msg);
                window.location.href=msg.url;
            }else if(msg.error == 1){
                alert(msg.msg)

            }else if(msg.error==2){
                alert(msg.msg)
//                layer.alert(msg.msg,{icon:2})
            }

        },"json")









    }
</script>
</body>
</html>